// 入口文件
import Vue from "vue";
import App from "./App.vue";
import "./style/global.less";
import router from "./router";
import store from './store'
import "./mock";
import "./api/banner"

import showMessage from "./utils/showMessage";
import vLoding from "./directives/loading";
import vLayz from './directives/layz';
import vVayz from './directives/vayz';
import "./eventBus" // 导入eventbus
Vue.prototype.$showMessage = showMessage;
store.dispatch("setting/fetchSetting")
Vue.directive("loding",vLoding); // 自定义指令
Vue.directive("layz",vLayz);
Vue.directive("vayz",vVayz); // 第二遍脱稿写
new Vue({
  store,
  router,
  render: (h) => h(App),
}).$mount("#app");

